let _this = null

function options(vm) {
  _this = vm
  return [
    [
      {
        title: '顾问姓名',
        key: 'userName',
        text: {}
      },
      {
        title: '承接线索类型',
        key: 'clueType',
        text: {},
        data: {
          from: (info) => {
            return info.clueType == 1
              ? '电话'
              : info.clueType == 2
              ? '表单'
              : info.clueType == 4
              ? '仅外呼'
              : '电话和表单'
          }
        }
        // slots: {
        //   default: (params, h) => {
        //     console.log(params, '22222222222');
        //     return [h('div', params.row.clueType == 1 ? '电话' : params.row.clueType == 2 ?
        //       '表单' : '电话和表单')]
        //   }
        // }
      }
    ],

    [
      {
        title: '呼出隐私号',
        key: 'outPhoneX',
        text: {}
      },
      {
        title: '绑定手机号',
        key: 'phone',
        text: {}
      }
    ],
    [
      {
        title: '同策好房呼入号',
        key: 'myTcInPhoneX',
        text: {}
      },
      {
        title: '百度地图呼入号',
        key: 'myBdInPhoneX',
        text: {}
      }
    ],
    [
      {
        title: '进电接通数/进电总数',
        key: 'connectedAnCallInScale',
        text: {}
      },
      {
        title: '进电总时长/平均时长',
        key: 'connectedAnCallInTimeScale',
        text: {}
      }
    ],

    [
      {
        title: '回拨表单数/分配表单数',
        key: 'callBackAnDisFormScale',
        text: {}
      },
      {
        title: '回拨总时长/平均时长',
        key: 'callBackAnDisFormTimeScale',
        text: {}
      }
    ],
    [
      {
        title: '去电接通数/去电总数',
        key: 'connectedAnCallOutScale',
        text: {}
      },
      {
        title: '去电总时长/平均时长',
        key: 'connectedAnCallOutTimeScale',
        text: {}
      }
    ],
    [
      {
        title: '线索转到访数',
        key: 'toVisitNum',
        text: {}
      },
      {
        title: '线索转到访率',
        key: 'toVisitRate',
        text: {}
      }
    ],
    [
      {
        title: '运营配置人员',
        key: 'receiverCreator',
        text: {}
      },
      {
        title: '承接配置时间',
        key: 'receiverCreateTime',
        text: {}
      }
    ]
  ]
}

export default {
  options
}
